package com.hs.jhzd.entity;

import org.springframework.data.annotation.CreatedDate;
import javax.persistence.*;
import java.util.Date;
import java.util.Objects;


/**
 * @author guoxc
 * @date 2019/03/01
 **/
@Entity
@Table(name = "jh_scl90jgb")
public class JhScl90JgbEntity {
    @Id
    private String zybh;//作业编号
    private String rybh;//人員編號
    private String qth;//体能得分
    private String qt;//其他得分
    private String jsbx;//精神病评分
    private String pz;//偏执
    private String pgmj;
    private String kssj;
    private String zfz;//总分
    private String yy;//抑郁得分
    private String rjgxmg;//关系得分
    private String qpzz;//强迫症核心
    private String kb;//恐怖评分
    private String dd;
    private String jl;//焦虑评分
    @Lob
    private String csjg;//測試結果
    @CreatedDate
    private Date sjc;  //時間
    private Boolean scbj;
    private String jsbh;//監所編號
    private String jsmc;//監所名稱

    @Basic
    @Column(name = "ZYBH")
    public String getZybh() {
        return zybh;
    }

    public void setZybh(String zybh) {
        this.zybh = zybh;
    }

    @Basic
    @Column(name = "RYBH")
    public String getRybh() {
        return rybh;
    }

    public void setRybh(String rybh) {
        this.rybh = rybh;
    }


    @Basic
    @Column(name = "QTH")
    public String getQth() {
        return qth;
    }

    public void setQth(String qth) {
        this.qth = qth;
    }

    @Basic
    @Column(name = "QT")
    public String getQt() {
        return qt;
    }

    public void setQt(String qt) {
        this.qt = qt;
    }

    @Basic
    @Column(name = "JSBX")
    public String getJsbx() {
        return jsbx;
    }

    public void setJsbx(String jsbx) {
        this.jsbx = jsbx;
    }

    @Basic
    @Column(name = "PZ")
    public String getPz() {
        return pz;
    }

    public void setPz(String pz) {
        this.pz = pz;
    }

    @Basic
    @Column(name = "PGMJ")
    public String getPgmj() {
        return pgmj;
    }

    public void setPgmj(String pgmj) {
        this.pgmj = pgmj;
    }

    @Basic
    @Column(name = "KSSJ")
    public String getKssj() {
        return kssj;
    }

    public void setKssj(String kssj) {
        this.kssj = kssj;
    }

    @Basic
    @Column(name = "ZFZ")
    public String getZfz() {
        return zfz;
    }

    public void setZfz(String zfz) {
        this.zfz = zfz;
    }

    @Basic
    @Column(name = "YY")
    public String getYy() {
        return yy;
    }

    public void setYy(String yy) {
        this.yy = yy;
    }

    @Basic
    @Column(name = "RJGXMG")
    public String getRjgxmg() {
        return rjgxmg;
    }

    public void setRjgxmg(String rjgxmg) {
        this.rjgxmg = rjgxmg;
    }

    @Basic
    @Column(name = "QPZZ")
    public String getQpzz() {
        return qpzz;
    }

    public void setQpzz(String qpzz) {
        this.qpzz = qpzz;
    }

    @Basic
    @Column(name = "KB")
    public String getKb() {
        return kb;
    }

    public void setKb(String kb) {
        this.kb = kb;
    }

    @Basic
    @Column(name = "DD")
    public String getDd() {
        return dd;
    }

    public void setDd(String dd) {
        this.dd = dd;
    }

    @Basic
    @Column(name = "JL")
    public String getJl() {
        return jl;
    }

    public void setJl(String jl) {
        this.jl = jl;
    }

    @Basic
    @Column(name = "CSJG")
    public String getCsjg() {
        return csjg;
    }

    public void setCsjg(String csjg) {
        this.csjg = csjg;
    }

    @Basic
    @Column(name = "SJC")
    public Date getSjc() {
        return sjc;
    }

    public void setSjc(Date sjc) {
        this.sjc = sjc;
    }

    @Basic
    @Column(name = "SCBJ",columnDefinition = " default false")
    public Boolean getScbj() {
        return scbj;
    }

    public void setScbj(Boolean scbj) {
        this.scbj = scbj;
    }

    @Basic
    @Column(name = "JSBH")
    public String getJsbh() {
        return jsbh;
    }

    public void setJsbh(String jsbh) {
        this.jsbh = jsbh;
    }

    @Basic
    @Column(name = "JSMC")
    public String getJsmc() {
        return jsmc;
    }

    public void setJsmc(String jsmc) {
        this.jsmc = jsmc;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        JhScl90JgbEntity that = (JhScl90JgbEntity) o;
        return Objects.equals(zybh, that.zybh) &&
                Objects.equals(rybh, that.rybh) &&
                Objects.equals(qth, that.qth) &&
                Objects.equals(qt, that.qt) &&
                Objects.equals(jsbx, that.jsbx) &&
                Objects.equals(pz, that.pz) &&
                Objects.equals(pgmj, that.pgmj) &&
                Objects.equals(kssj, that.kssj) &&
                Objects.equals(zfz, that.zfz) &&
                Objects.equals(yy, that.yy) &&
                Objects.equals(rjgxmg, that.rjgxmg) &&
                Objects.equals(qpzz, that.qpzz) &&
                Objects.equals(kb, that.kb) &&
                Objects.equals(dd, that.dd) &&
                Objects.equals(jl, that.jl) &&
                Objects.equals(csjg, that.csjg) &&
                Objects.equals(sjc, that.sjc) &&
                Objects.equals(scbj, that.scbj) &&
                Objects.equals(jsbh, that.jsbh) &&
                Objects.equals(jsmc, that.jsmc);
    }

    @Override
    public int hashCode() {
        return Objects.hash(zybh, rybh, qth, qt, jsbx, pz, pgmj, kssj, zfz, yy, rjgxmg, qpzz, kb, dd, jl, csjg, sjc, scbj, jsbh, jsmc);
    }
}
